<template>
	<view>
		<view class="aa"></view>
		<view class="bb">
			<view v-for="(item, index) in itemList" :key="index" class="cc">
				<view   class="c1">
					<view class="c11">{{item.cheService.cheShop.shopName}}-{{item.cheService.name}}</view>
					<view class="c12">{{item.cheService.createTime}}</view>
				</view>
				<view class="c2">
					-{{item.money}}元
				</view>
			</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemList:[]
				
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList(){
				let that=this
				this.$http({
					url:'/api/service/items/list',
					method:'get',
					success(res){
						that.itemList=res.data.rows
					}
				})
			}
			
			
			
		}
	}
</script>

<style>
.c2{
	font-weight: bold;
	font-size: 30rpx;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10rpx;
	height: 100rx;
	padding: 55rpx 30rpx;  
}
.c1{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10rpx;
	height: 100rx;
	padding: 30rpx 20rpx;  
	/* 它分别指定了元素的上下和左右内边距的大小 */
	

	}
.c12{
	color: #939393;
}
.c11{
	font-weight: bold;
	font-size: 30rpx;
}
.cc{
	display: flex;
	justify-content: space-between;
	margin: auto;
	border-bottom: 4px solid #F8F8F8; /* 设置下边框，2px宽，黑色 */
	
		width: 94%;
}
.bb{
	background-color: white;
	margin-top: -230rpx;
	/* height: 500rpx; */
	border-radius: 20rpx;
	width: 90%;
    margin-left: 5%;
}
.aa{
	background-color: #2E80FA;
	height: 260rpx;
	width: 100%;
}
</style>
